{extend name="public/base"/}
{block name="body"}
<form method="post" target="_self">
  <div class="create-database">
    <h2> 数据库连接信息 </h2>
    <table class="table-hover table">
      <tr>
        <td class="td1">数据库类型：</td>
        <td><select class="form-control" name="db[]">
            <option> mysql </option>
            <option> mysqli </option>
          </select></td>
        <td> <span>建议使用mysql </span></td>
      </tr>
      <tr>
        <td class="td1">数据库服务器：</td>
        <td><input class="form-control" name="db[]" type="text" value="127.0.0.1">
          </input></td>
        <td><span> 数据库服务器IP，一般为127.0.0.1，使用localhost可能导致网站速度变慢 </span></td>
      </tr>
      <tr>
        <td class="td1">数据库名称：</td>
        <td><input class="form-control" name="db[]" type="text" value="">
          </input></td>
        <td><span>  </span></td>
      </tr>
      <tr>
        <td class="td1">数据库用户名：</td>
        <td><input class="form-control" name="db[]" type="text" value="root">
          </input></td>
        <td><span>  </span></td>
      </tr>
      <tr>
        <td class="td1">数据库密码：</td>
        <td><input class="form-control" name="db[]" type="password" value="">
          </input></td>
        <td><span>  </span></td>
      </tr>
      <tr>
        <td class="td1">数据库端口：</td>
        <td><input class="form-control" name="db[]" type="text" value="3306">
          </input></td>
        <td><span> 数据库服务连接端口，一般为3306 </span></td>
      </tr>
      <tr>
        <td class="td1">数据表前缀：</td>
        <td width="245"><input class="form-control" name="db[]" type="text" value="sy_" class="form-control">
          </input></td>
        <td><span> 数据表前缀，同一个数据库运行多个系统时请修改为不同的前缀 </span></td>
      </tr>
    </table>
  </div>
  <div class="create-database">
    <h2> 创始人帐号信息 </h2>
    <table class="table-hover table">
      <tr>
        <td class="td1">用户名：</td>
        <td width="245"><input class="form-control" name="admin[]" readonly="readonly" type="text" value="admin">
          </input></td>
        <td><span> 用户名( <span class="text-danger"> 英文+数字，严禁中文与特殊字符 </span> ) </span></td>
      </tr>
      <tr>
        <td class="td1">密码：</td>
        <td><input class="form-control" name="admin[]" type="password" value="">
          </input></td>
        <td><span> 密码 </span></td>
      </tr>
      <tr>
        <td class="td1">确认密码：</td>
        <td><input class="form-control" name="admin[]" type="password" value="">
          </input></td>
        <td><span> 确认密码 </span></td>
      </tr>
    </table>
    <div> </div>
  </div>
</form>
{/block}
{block name="footer"}
<div class="text-center">
  <button class="button" type="button" onclick="window.location.href='{:url('install/index/check')}'"><i class="icon-mail-reply (alias)"></i> 上一步 </button>
  <button class="button" id="submit" onclick="$('form').submit();return false;" type="button"><i class="icon-mail-forward (alias)"></i> 下一步 </button>
</div>
{/block} 